.class public Les/kv;
.super Ljava/lang/Object;
.source "PathMatcher.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Les/kv$a;
    }
.end annotation


# instance fields
.field private final a:Les/kv$a;


# direct methods
.method public constructor <init>()V
    .locals 2

    .line 1
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 2
    new-instance v0, Les/kv$a;

    const-string v1, "/"

    invoke-direct {v0, p0, v1}, Les/kv$a;-><init>(Les/kv;Ljava/lang/String;)V

    iput-object v0, p0, Les/kv;->a:Les/kv$a;

    return-void
.end method


# virtual methods
.method public a(Ljava/lang/String;)Ljava/lang/String;
    .locals 4

    const-string v0, "/"

    .line 13
    invoke-virtual {p1, v0}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object p1

    .line 14
    iget-object v0, p0, Les/kv;->a:Les/kv$a;

    const/4 v1, 0x1

    const/4 v2, 0x0

    .line 15
    :goto_0
    array-length v3, p1

    if-ge v1, v3, :cond_1

    .line 16
    iget-object v0, v0, Les/kv$a;->c:Ljava/util/Map;

    .line 17
    aget-object v3, p1, v1

    invoke-virtual {v3}, Ljava/lang/String;->toLowerCase()Ljava/lang/String;

    move-result-object v3

    .line 18
    invoke-interface {v0, v3}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Les/kv$a;

    if-eqz v0, :cond_1

    .line 19
    iget-object v3, v0, Les/kv$a;->b:Ljava/lang/String;

    invoke-static {v3}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v3

    if-nez v3, :cond_0

    .line 20
    iget-object v2, v0, Les/kv$a;->b:Ljava/lang/String;

    :cond_0
    add-int/lit8 v1, v1, 0x1

    goto :goto_0

    :cond_1
    return-object v2
.end method

.method public a(Ljava/lang/String;Ljava/lang/String;)V
    .locals 6

    .line 1
    invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_0

    return-void

    :cond_0
    const-string v0, "/"

    .line 2
    invoke-virtual {p1, v0}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v1

    if-nez v1, :cond_1

    return-void

    .line 3
    :cond_1
    invoke-virtual {p1, v0}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object p1

    .line 4
    iget-object v0, p0, Les/kv;->a:Les/kv$a;

    const/4 v1, 0x1

    const/4 v2, 0x1

    const/4 v3, 0x1

    .line 5
    :goto_0
    array-length v4, p1

    if-ge v2, v4, :cond_6

    .line 6
    aget-object v4, p1, v2

    invoke-virtual {v4}, Ljava/lang/String;->toLowerCase()Ljava/lang/String;

    move-result-object v4

    if-eqz v3, :cond_3

    .line 7
    iget-object v5, v0, Les/kv$a;->c:Ljava/util/Map;

    .line 8
    invoke-interface {v5, v4}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v5

    check-cast v5, Les/kv$a;

    if-eqz v5, :cond_2

    move-object v0, v5

    goto :goto_1

    :cond_2
    const/4 v3, 0x0

    :cond_3
    :goto_1
    if-nez v3, :cond_4

    .line 9
    new-instance v5, Les/kv$a;

    invoke-direct {v5, p0, v4}, Les/kv$a;-><init>(Les/kv;Ljava/lang/String;)V

    .line 10
    invoke-virtual {v0, v5}, Les/kv$a;->a(Les/kv$a;)V

    move-object v0, v5

    .line 11
    :cond_4
    array-length v4, p1

    sub-int/2addr v4, v1

    if-ne v2, v4, :cond_5

    .line 12
    iput-object p2, v0, Les/kv$a;->b:Ljava/lang/String;

    :cond_5
    add-int/lit8 v2, v2, 0x1

    goto :goto_0

    :cond_6
    return-void
.end method
